package deng.camel.examples;

import java.util.HashMap;
import java.util.Map;

public class Helper {


	public static Map<String, Object> mkMap(Object ... objects) {
		Map<String, Object> headers = new HashMap<String, Object>();
		int i = 0;
		while(i < objects.length) {
			headers.put((String)objects[i++], objects[i++]);
		}
		return headers;
	}
	
}
